Python Flask and Django | Full Stack Python for Web Development by Global Emenwa & IfeanyiChukwu Ejike
Author:Global, Emenwa & IfeanyiChukwu, Ejike
Language: eng
Format: epub, pdf
Published: 2022-08-21T00:00:00+00:00
</html>
The new code now has error handling codes.
When we first learnt about databases, I stated that each object must be distinct. If we try to add a book with the same title twice or change the title of an existing book to one that already exists, an error will occur. The revised code will have a try: except: block around the home() and update() blocks.
Chapter 15 â Deployment
At long last, our app is ready for release. The deployment has begun. There are a lot of factors to consider, which can make this procedure tedious. When it comes to our production stack, there are also many options to consider. In this section, we'll go over a few key components and the various customization paths available to us for each of them.
Web Hosting
Since the beginning of this tutorial, you have been using your local server, which only you can access. You need a server that is accessible to everyone. There are thousands of service providers that give this, but I use and recommend the three below. The specifics of getting started with them are outside the scope of this book. Therefore I won't be covering them here. Instead, I'll focus on why they're a good choice for Flask app hosting.
Amazon Web Services EC2
Amazon Web Services (AWS) is the most common option for new businesses, so you may have heard of them. I am talking about the Amazon Elastic Compute Cloud (EC2) for your Flask app. The main selling feature of EC2 is the speed with which new virtual computers, or "instances" in AWS lingo, may be created. Adding more EC2 instances to our app and placing them behind a load balancer allows us to swiftly expand it to meet demand (we can even use the AWS Elastic Load Balancer).
For Flask, AWS is equivalent to any other form of the virtual server. In a matter of minutes, we can have it running our preferred Linux distribution, complete with our Flask app and server stack. However, this necessitates that we have some expertise in systems management.
Heroku
Heroku is a platform for hosting applications developed on top of existing AWS capabilities, such as Elastic Compute Cloud (EC2). As a result, we could enjoy EC2's benefits without learning the ins and outs of systems administration.
When using Heroku, we simply push our application's source code repository to their server through git. This is handy when we don't feel like logging into a server through SSH, configuring the software, and thinking out a sensible deployment strategy. These luxuries don't come cheap, but both AWS and Heroku provide some levels of service at no cost to the user.
Digital Ocean
In recent years, Digital Ocean has emerged as a serious alternative to Amazon Web Services EC2. In the same way that EC2 allows us to easily create virtual servers, Digital Ocean will enable us to create what they call droplets. In contrast to the lower tiers of EC2, all droplets use solid-state drives. The most appealing feature for me is the interface's superior simplicity and ease of use compared to the AWS control panel.
Download
Python Flask and Django | Full Stack Python for Web Development by Global Emenwa & IfeanyiChukwu Ejike.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Art of Coaching Workbook by Elena Aguilar(50049)
Trainspotting by Irvine Welsh(20955)
Twilight of the Idols With the Antichrist and Ecce Homo by Friedrich Nietzsche(18269)
Fangirl by Rainbow Rowell(8764)
Periodization Training for Sports by Tudor Bompa(7893)
Change Your Questions, Change Your Life by Marilee Adams(7328)
This Is How You Lose Her by Junot Diaz(6406)
Asking the Right Questions: A Guide to Critical Thinking by M. Neil Browne & Stuart M. Keeley(5325)
Grit by Angela Duckworth(5268)
Red Sparrow by Jason Matthews(5171)
Paper Towns by Green John(4759)
Room 212 by Kate Stewart(4710)
Ken Follett - World without end by Ken Follett(4418)
The Sports Rules Book by Human Kinetics(4050)
Housekeeping by Marilynne Robinson(4023)
Double Down (Diary of a Wimpy Kid Book 11) by Jeff Kinney(3882)
Papillon (English) by Henri Charrière(3879)
The Motorcycle Diaries by Ernesto Che Guevara(3760)
Exercise Technique Manual for Resistance Training by National Strength & Conditioning Association(3759)
